package smcms.service.order.feignService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import smcms.commons.api.entity.result.CommonsResult;
import smcms.service.order.entity.InventoryPlus;
import smcms.service.order.entity.ProductReq;
import smcms.service.order.entity.ProductTemp;

import java.util.List;

@FeignClient(value = "smcms-service-product")
public interface ProductService {
    @PostMapping("/ProductController/queryProductList")
    CommonsResult queryProductList(@RequestBody ProductReq productReq);

    @PostMapping("/ProductController/queryProductExport")
    List<ProductTemp> queryProductExport(@RequestBody ProductReq productReq);

    @PostMapping("/ProductController/queryProduct")
    CommonsResult queryProduct(@RequestBody ProductReq productReq);

    @PostMapping("/ProductController/productInventoryPlus")
    CommonsResult productInventoryPlus(@RequestBody InventoryPlus inventoryPlus);


}
